Annotate the GtkSelectionModel callbacks
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 6 Jun 2020 23:39:33 +0000 (00:39 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 6 Jun 2020 23:39:33 +0000 (00:39 +0100)
We need a scope for the select and unselect callback arguments.

gtk/gtkselectionmodel.c

index 1bbf277d61257d2849fda3e41c28aeb62b1f4086..9deb1e32de8d0b5be7d61fe8f8ea376d8736d8b2 100644 (file)
@@ -345,7 +345,7 @@ gtk_selection_model_unselect_all (GtkSelectionModel *model)
 /**
  * gtk_selection_model_select_callback:
  * @model: a #GtkSelectionModel
- * @callback: a #GtkSelectionCallback to determine items to select
+ * @callback: (scope call): a #GtkSelectionCallback to determine items to select
  * @data: data to pass to @callback
  *
  * Requests to select all items for which @callback returns
@@ -364,7 +364,7 @@ gtk_selection_model_select_callback (GtkSelectionModel    *model,
 /**
  * gtk_selection_model_unselect_callback:
  * @model: a #GtkSelectionModel
- * @callback: a #GtkSelectionCallback to determine items to select
+ * @callback: (scope call): a #GtkSelectionCallback to determine items to select
  * @data: data to pass to @callback
  *
  * Requests to unselect all items for which @callback returns